export type listModel = {
  address: string // 会议室地址
  id: number // id
  delFlag: string // 删除标识
  meetingRoom: string // 会议室名称
  meetingRoomNum: string // 容纳人数
  meetingRoomType: string // 会议室类型
  meetingRoomTypeCode: string // 会议室类型编码
  remarks: string // 备注
  updatedTime: string // 更新时间
  createdTime: string // 创建时间
}

export type typeModel = {
  id: string
  dicCode: string
  dicName: string
}

export type carlistModel = {
  carName: string // 会议室地址
  licensePlate: string // 车牌号
  remarks: string // 备注
  id: number // id
  delFlag: string // 删除标识
  updatedTime: string // 更新时间
  createTime: string // 创建时间
}

export type customlistModel = {
  name: string
  fileId: string
  url: string
  remarks: string // 备注
  id: number // id
  delFlag: string // 删除标识
  updatedTime: string // 更新时间
  createTime: string // 创建时间
  path: string
}

const api: ApiConfig = {
  // 会议室设置接口-S
  roomList: {
    method: 'GET',
    url: '/oa/meetingRoom/meetingRoom/list'
  },
  roomType: {
    method: 'GET',
    url: '/sys/dic/listByParentCode'
  },
  roomDelete: {
    method: 'POST',
    url: '/oa/meetingRoom/meetingRoom/delete'
  },
  roomItem: {
    method: 'GET',
    url: '/oa/meetingRoom/meetingRoom/info/:id'
  },
  roomSave: {
    method: 'POST',
    url: '/oa/meetingRoom/meetingRoom/save'
  },
  roomUpdate: {
    method: 'POST',
    url: '/oa/meetingRoom/meetingRoom/update'
  },
  // 会议室设置接口-E

  // 用车设置接口-S
  carList: {
    method: 'GET',
    url: '/oa/car/car/list'
  },
  carDelete: {
    method: 'POST',
    url: '/oa/car/car/delete'
  },
  carItem: {
    method: 'GET',
    url: '/oa/car/car/info/:id'
  },
  carSave: {
    method: 'POST',
    url: '/oa/car/car/save'
  },
  carUpdate: {
    method: 'POST',
    url: '/oa/car/car/update'
  },
  // 用车设置接口-E

  // 自定义配置常用链接接口-S
  customList: {
    method: 'GET',
    url: '/oa/customizeConfig/customizeConfig/list'
  },
  customUp: {
    method: 'GET',
    url: '/oa/customizeConfig/customizeConfig/moveUp'
  },
  customLow: {
    method: 'GET',
    url: '/oa/customizeConfig/customizeConfig/moveDown'
  },
  customTop: {
    method: 'GET',
    url: '/oa/customizeConfig/customizeConfig/moveToTop'
  },
  customDelete: {
    method: 'POST',
    url: '/oa/customizeConfig/customizeConfig/delete'
  },
  customItem: {
    method: 'GET',
    url: '/oa/customizeConfig/customizeConfig/info/:id'
  },
  customSave: {
    method: 'POST',
    url: '/oa/customizeConfig/customizeConfig/save'
  },
  customUpdate: {
    method: 'POST',
    url: '/oa/customizeConfig/customizeConfig/update'
  },
  // 自定义配置常用链接接口-E

  // 删除用户-S
  userDeleteList: {
    method: 'GET',
    url: '/sys/user/delList'
  },
  partList: {
    method: 'GET',
    url: '/sys/sysInstitution/getTree'
  },
  userDeleteBack: {
    method: 'GET',
    url: '/sys/user/restore'
  },
  // 删除用户-E

  // 假期设置接口-S
  holidayList: {
    method: 'GET',
    url: '/oa/vacation/vacationAdd/list'
  },
  holidayDelete: {
    method: 'POST',
    url: '/oa/vacation/vacationAdd/delete'
  },
  holidaySave: {
    method: 'POST',
    url: '/oa/vacation/vacationAdd/save'
  },
  holidayDownLoad: {
    method: 'POST',
    url: '/oa/vacation/vacationAdd/downloadVacation',
    responseType: 'blob'
  },
  holidayExport: {
    method: 'GET',
    url: '/oa/vacation/vacationAdd/exportVacation',
    responseType: 'blob'
  },
  holidayImport: {
    method: 'POST',
    url: '/oa/vacation/vacationAdd/importVacation',
    headers: {
      'content-type': 'multipart/form-data'
    }
  },
  // 假期设置接口-E
  partPersons: {
    method: 'GET',
    url: '/sys/sysInstitution/getUserByDeptIdList'
  },
  // 获取即将生日人员列表
  getComingBirthdayList: {
    method: 'GET',
    url: '/oa/museumNewNotice/getComingBirthdayList'
  },
  // 获取生日祝福详情
  getBirthdayInfo: {
    method: 'GET',
    url: '/oa/museumNewNotice/getBirthdayInfo/:id'
  },
  // 发送生日祝福
  sendBlessings: {
    method: 'POST',
    url: '/oa/museumNewNotice/sendBlessings'
  },

  /** @移动端的常用链接 */
  // 自定义配置分页列表
  mobileLinkList: {
    method: 'GET',
    url: '/oa/mobileLink/mobileLink/list'
  },
  // 获取自定义配置信息
  mobileLinkInfo: {
    method: 'GET',
    url: '/oa/mobileLink/mobileLink/info/:id'
  },
  // 删除自定义配置信息
  mobileLinkDelete: {
    method: 'POST',
    url: '/oa/mobileLink/mobileLink/delete'
  },
  // 下移
  mobileLinkMoveDown: {
    method: 'GET',
    url: '/oa/mobileLink/mobileLink/moveDown'
  },
  // 置顶
  mobileLinkMoveToTop: {
    method: 'GET',
    url: '/oa/mobileLink/mobileLink/moveToTop'
  },
  // 上移
  mobileLinkMoveUp: {
    method: 'GET',
    url: '/oa/mobileLink/mobileLink/moveUp'
  },
  // 保存自定义配置信息
  mobileLinkSave: {
    method: 'POST',
    url: '/oa/mobileLink/mobileLink/save'
  },
  // 修改自定义配置信息
  mobileLinkUpdate: {
    method: 'POST',
    url: '/oa/mobileLink/mobileLink/update'
  }
}

export default api
